package com.cnhis.cloudhealth.clinical.medical.base.dao;

import com.cnhis.cloudhealth.commons.dao.BaseDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * Created by chengshaowei on 2016/10/19.
 */
@Repository
public class MmembersDao extends BaseDao {
    /**
     * @Description:(获取会员病人需要扣费金额)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public Map<String, Object> findDeductionAmount0(Map map) throws Exception {
        return (Map<String, Object>) getSqlSession().selectOne("Mmembers.findDeductionAmount0", map);
    }

    /**
     * @Description:(获取会员病人需要扣费金额)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public Map<String, Object> findDeductionAmount1(Map map) throws Exception {
        return (Map<String, Object>) getSqlSession().selectOne("Mmembers.findDeductionAmount1", map);
    }

    /**
     * @Description:(医技条形码检索、医技刷卡检索)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public List<Map<String, Object>> findBarcode(Map map) throws Exception {
        return (List<Map<String, Object>>)this.queryForList("Mmembers.findBarcode", map);
    }

    /**
     * @Description:(医技条形码检索、医技刷卡检索)
     * @param '[map]'
     * @return java.util.Map<java.lang.String,java.lang.Object>
     * @throws
     * @author chengshaowei
     * @date 2016/9/19 10:30
     */
    public List<Map<String, Object>> findMemberscard(Map map) throws Exception {
        return (List<Map<String, Object>>)this.queryForList("Mmembers.findMemberscard", map);
    }
}
